import instance from '@/utils/axios.js'

export function screenApi () {
  return instance({
    url: '/interview/filters',
    method: 'get'
  })
}

export function getInterviewApi(type,city){
  return instance({
    url:'/interview/questions',
    method:'get',
    params:{
      type,city
    },
    hasToken:true
  })
}

//面试题详情接口
export function getParticularsApi(id){
  return instance({
    url:`/questions/${id}`,
    method:'get',
    hasToken:true
  })
}

//提交试题接口
export function submitApi(data){
  return instance({
    url:'/questions/submit',
    method:'post',
    data,
    hasToken:true
  })
}